<div class="row">
	<div class="col-md-6">
		<div class="panel panel-default">
			<div class="panel-heading"><strong><h4 style="margin:0px;">Bản Đồ</h4></strong></div>
			<div class="panel-body">
				<div id="map"> </div>
			</div>
		</div>

		<div class="panel panel-default">
			<div class="panel-heading"><strong><h4 style="margin:0px;">Địa Chỉ</h4></strong></div>
			<div class="panel-body">
				<p><strong>Địa chỉ:</strong> <small>17/15A Học Lạc, P14, Q5, Tp.HCM.</small></p>
				<p><strong>Điện thoại:</strong> <small> 08 38 548 749</small></p>
				<p><strong>Di động:</strong> <small> 0979 52 52 15</small></p>
				<p><strong>Email:</strong> <small> phuong@spaceplus.vn</small></p>
			</div>
		</div>
  	</div>

  	<div class="col-md-6">
  		<?php echo $this->Session->flash(); ?>
  		<div class="panel panel-default">
			<div class="panel-heading"><strong><h4 style="margin:0px;">Liên Hệ</h4></strong></div>
			<div class="panel-body">
	  		<?php echo $this->Form->create('Contact')?>

				<?php echo $this->Form->input('Contact.fullname', array('label' => 'Họ tên', 'div' => 'form-group', 'class' => 'form-control', 'placeholder' => 'Nhập họ tên'));?>
				<?php echo $this->Form->input('Contact.address', array('label' => 'Địa chỉ', 'div' => 'form-group', 'class' => 'form-control', 'placeholder' => 'Nhập địa chỉ'));?>
				<?php echo $this->Form->input('Contact.email', array('label' => 'Email', 'div' => 'form-group', 'class' => 'form-control', 'placeholder' => 'Nhập email'));?>
				<?php echo $this->Form->input('Contact.title', array('label' => 'Tiêu đề', 'div' => 'form-group', 'class' => 'form-control', 'placeholder' => 'Nhập tiêu đề'));?>
				<?php echo $this->Form->input('Contact.content', array( 'type' => 'textarea', 'label' => 'Nội dung', 'div' => 'form-group', 'class' => 'form-control', 'placeholder' => 'Nhập nội dung'));?>
				<?php echo $this->element('captcha', array('name' => 'send-contact' )) ?>
				<button type="submit" class="btn btn-primary">Gửi</button>
			</form>
			</div>
	  	</div>
  	</div>
</div>

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

<?php
	echo $this->Html->script('plugins/bootbox/bootbox.min');
	echo $this->Html->script('functions');
	echo $this->Html->script('gmaps');
?>


<script>
var map;
var lat = <?= $map['lat'] ?>;
var lng = <?= $map['lng'] ?>;

$( document ).ready(function($) {

	map = new GMaps({
        el: '#map',
        zoom: 16,
        lat: lat,
        lng: lng
	});


	map.addMarker({
        lat: lat,
        lng: lng,
        title: 'phuc',
	});

});

</script>